package com.gem.demo.service.impl;

import com.gem.demo.entity.ProductType;
import com.gem.demo.mapper.ProductTypeMapper;
import com.gem.demo.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductTypeServiceImpl implements ProductTypeService {
    @Autowired
    private ProductTypeMapper productTypeMapper;
    @Override
    public List<ProductType> list() {
        return productTypeMapper.selectAll();
    }
}
